<?php
//用户信息插入
class test_session{

    //用户信息插入
    public function post(){
        $imageData = isset($_POST['base64']) ? trim($_POST['base64']) : '';
        if ($imageData == '') {
            exit(json_encode(array('code' => '08', 'msg' => '地址为空')));
        } else {
            $_SESSION['canvas'] =$imageData; 
            exit(json_encode(array('code' => '00', 'msg' => "success")));
        }
    }
    
}